package com.middlegroup.pay.service.impl;

import com.middlegroup.pay.entity.InBills;
import com.middlegroup.pay.mapper.InBillsMapper;
import com.middlegroup.pay.service.InBillsService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author pc123
 * @since 2019-01-04
 */
@Service
public class InBillsServiceImpl extends ServiceImpl<InBillsMapper, InBills> implements InBillsService {

    @Resource
    private InBillsMapper inBillsMapper;

    @Override
    public InBills getByBillNo(String billNo) {
        return inBillsMapper.getByBillNo(billNo);
    }
    @Override
    public InBills getByOrderId(String orderId) {
        return inBillsMapper.getByOrderId(orderId);
    }
    @Override
    public InBills getByMerchantBillNo( String merchantBillNo) {
        return inBillsMapper.getByMerchantBillNo(merchantBillNo);
    }
    @Override
    public InBills getBySaleId(String saleId) {
        return inBillsMapper.getBySaleId(saleId);
    }
}
